-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove support for base access with explicit base type. #35456
Remove support for base access with explicit base type. #35456
Conversation
ERR_NotDeclaredInBase = 8710, | ||
//ERR_NotBaseOrImplementedInterface = 8708, | ||
//ERR_NotImplementedInBase = 8709, | ||
//ERR_NotDeclaredInBase = 8710, | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it may be better to just delete these, since it will likely be inappropriate to include these diagnostics in the C# 8.0 range of codes if it is introduced in a later language version.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One possible reason to keep these error codes is to make it easier to revert this PR later on (to re-introduce the feature). We can reserve those error codes.
In reply to: 280623450 [](ancestors = 280623450)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dotnet/roslyn-compiler Please review, need a second sign-off |
boundType = new BoundTypeExpression(node.TypeClause.BaseType, alias, baseType, hasErrors); | ||
} | ||
|
||
TypeSymbol baseType = this.ContainingType is null ? null : this.ContainingType.BaseTypeNoUseSiteDiagnostics; | ||
bool inStaticContext; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
inStaticContext [](start = 17, length = 15)
nit: consider inlining declaration
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM (commit 2)
@@ -4391,144 +4391,5 @@ public void BaseExpression_01() | |||
} | |||
EOF(); | |||
} | |||
|
|||
[Fact] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fact [](start = 9, length = 4)
General question about this PR:
I don't think the removal of base(Something)
is a breaking change, since the feature has not RTM'ed. But if anyone has been using this feature in preview, their code will break. Does that rise to the level where we want to add a note to breaking changes?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The feature became available only a couple of weeks ago in Preview 3 of VS.
In reply to: 280927546 [](ancestors = 280927546)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM Thanks (iteration 2)
Related to #32054.